<?php
//面包屑
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'订单管理'=>array($this->pre_module_url.'/orderSale/saleorder'),
	'评论管理'=>array($this->pre_module_url.'/ordComment/admin'),
	$company->zc_name,
);
$ico_star = array(
	'0'=>'star0',
	'1'=>'star1',
	'2'=>'star2',
	'3'=>'star3',
	'4'=>'star4',
	'5'=>'star5',
		);
?>
<div class="hr_12"></div>
<!--评价管理 start-->
<div class="rate_box">
	<div class="box">
		<h3 class="hd">店铺动态评分：</h3>
		<div class="grade bg_fff">
			<ul class="c_f">
				<li><span>宝贝描述相符：</span><span class="<?php echo $ico_star[round($commentAvg['avg_describe'])] ?>"></span><span><?php echo number_format($commentAvg['avg_describe'],2,'.','')?>分</span></li>
				<li><span>宝贝描述相符：</span><span class="<?php echo $ico_star[round($commentAvg['avg_service'])] ?>"></span><span><?php echo number_format($commentAvg['avg_service'],2,'.','')?>分</span></li>
				<li><span>宝贝描述相符：</span><span class="<?php echo $ico_star[round($commentAvg['avg_express'])] ?>"></span><span><?php echo number_format($commentAvg['avg_express'],2,'.','')?>分</span></li>
			</ul>
		</div>
	</div>
	<div class="box">
		<div class="hd c_f"><span class="c_f60 f_r mr10">好评率：<?php //echo $commentInfo['3']['total']/$commentInfo['0']['total']*100?>%</span><span class="fw_b">信用积分：<a class="c_06c" href="javascript:"><?php echo $commentInfo['3']['total']?></a></span></div>
		<table class="list_table bg_fff" width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<th width="20%"></th>
				<th width="16%">最近1周</th>
				<th width="16%">最近1个月</th>
				<th width="16%">最近3个月</th>
				<th width="16%">3个月前</th>
				<th width="16%">小计</th>
			</tr>
			<tr>
				<td><span class="mem_ico rate_good"></span>好评</td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['3']['in_a_week']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['3']['in_a_month']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['3']['in_three_month']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['3']['three_month_before']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['3']['total']?></a></td>
			</tr>
			<tr>
				<td><span class="mem_ico rate_normal"></span>中评</td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['2']['in_a_week']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['2']['in_a_month']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['2']['in_three_month']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['2']['three_month_before']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['2']['total']?></a></td>
			</tr>
			<tr>
				<td><span class="mem_ico rate_bad"></span>差评</td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['1']['in_a_week']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['1']['in_a_month']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['1']['in_three_month']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['1']['three_month_before']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['1']['total']?></a></td>
			</tr>
			<tr>
				<td>总计</td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['0']['in_a_week']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['0']['in_a_month']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['0']['in_three_month']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['0']['three_month_before']?></a></td>
				<td><a class="c_06c" href="javascript:"><?php echo $commentInfo['0']['total']?></a></td>
			</tr>
		</table>
	</div>
</div>
<!--评价管理 end-->  
<div class="hr_15"></div>
<div class="rate_list pub_tab" id="tabAds">
	<!--来自买家的评价  start-->
	<div class="tab_cont2">
		<table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
			<tr class="bgcolor">
				<th colspan="2" width="33%" class="rate tl">
				<?php $form=$this->beginWidget('CActiveForm', array(
					'action'=>Yii::app()->createUrl($this->route),
					'method'=>'get',
				)); ?>
					<?php echo CHtml::hiddenField('id',$company->zm_id)?>
					<?php echo $form->dropDownList($model,'zoc_sum',OrdComment::model()->getCommentType(),array('onchange'=>'this.form.submit()'))?>
				<?php $this->endWidget(); ?>
				</th>
				<th width="30%">评价人<?php echo $model->zoc_type?></th>
				<th>宝贝信息</th>
				<th width="6%">操作</th>
			</tr>
		</table>
		<?php $this->widget('zii.widgets.CListView', array(
				'dataProvider'=>$model->Search(),
				'itemView'=>'_comment_view',
				'itemsTagName'=>'table',
				'itemsOptions'=>array('class'=>'list_table list_table2','width'=>'100%','cellpadding'=>0,'cellspacing'=>0),
			)); ?>
	</div>
	<!--来自买家的评价  end-->
</div>